package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author : changkong
 * @date : 2022/1/17
 */
@Data
@Builder
@Schema
@NoArgsConstructor
@AllArgsConstructor
public class SaveFieldRequest {

    @NotEmpty
    @Schema(description = "字段名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String fieldName;

    @NotEmpty
    @Schema(description = "字段描述", requiredMode = Schema.RequiredMode.REQUIRED)
    private String fieldDesc;

    @NotEmpty
    @Schema(description = "字段类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private String fieldType;

    @NotEmpty
    @Schema(description = "是否必填", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean required;

    @NotEmpty
    @Schema(description = "是否分区", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean isPartition;
}
